import service from '@/utils/request'

export const xmgwslide = () => {
  return service({
    url: '/xmgw/xmgwGetSlide',
    method: 'get'
  })
}

export const xmgwDelSlide = (params) => {
  return service({
    url: '/xmgw/xmgwDeleteSlide',
    method: 'delete',
    params
  })
}

export const xmgwSlideDetail = (params) => {
  return service({
    url: '/xmgw/xmgwGetidSlide',
    method: 'get',
    params
  })
}

export const xmgwUpdateSlide = (data) => {
  return service({
    url: '/xmgw/xmgwUpdateSlide',
    method: 'put',
    data
  })
}

export const xmgwCreateSlide = (data) => {
  return service({
    url: '/xmgw/xmgwCreateSlide',
    method: 'post',
    data
  })
}
